{extend name='layout/base'}
{block name='title'}管理员设置-登录日志{/block}
{block name='left'}
{include file="layout/personalMenu"}
{/block}
{block name='right'}
<div class="page-header">
    <h1>登录日志</h1>
</div>
<div class="table-responsive">
    <table class="table">
        <thead>
            <tr>
                <th>用户ID</th>
                <th>电话号码</th>
                <th>登录时间</th>
                <th>登录状态</th>
            </tr>
        </thead>
        <tbody>
            {foreach $rows as $row}
            <tr>
                <th scope="row">{$row['id']}</th>
                <td>{$row['phone']}</td>
                <td><?php echo config('set.login_status')[$row->state];?></td>
                <td>{$row['create_time']}</td>
            </tr>
            {/foreach}
        </tbody>
    </table>
</div>
<!--分页-->
<div class="row">
    <div class="col-md-6 col-md-offset-3">
        {$rows->render()}
    </div>
</div>
{/block}
